package com.songsong.myblog2.service;

import com.songsong.myblog2.domain.Categories;
import net.sf.json.JSONObject;

import java.util.List;

public interface CategoriesService {

    //分类service
    void addCategories(Categories categories);

    Categories selectOne(String categoriesName);

    JSONObject getCategoriesManagement(int rows, int pageNum);

    void categoriesToStop(String categoriesName);

    void categoriesToBegin(String categoriesName);

    JSONObject findCategoriesNameAndArticleNum();

    void updateCategoriesNum(String articleCategories);


    List<Categories> getCategories();

    int getCategoriesNum();
}
